<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户中心</title>
    <link rel="shortcut icon" href="{{ static('images/logo.ico') }}"/>
    <meta name="keywords" content="小宅社区">
    <meta name="description" content="小宅社区">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../static/res/layui/css/layui.css">
    <link rel="stylesheet" href="../../static/res/css/global.css">
</head>
<body>
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="/">
            {#            <img src="../res/images/logo.png" alt="layui">#}
            <img src={{ static('images/logo.png') }} alt="layui">
        </a>
        <ul class="layui-nav fly-nav layui-hide-xs">
            <li class="layui-nav-item layui-this">
                <a href="/"><i class="iconfont icon-jiaoliu"></i>交流</a>
            </li>
            <li class="layui-nav-item">
                <a href="/case/case"><i class="iconfont icon-iconmingxinganli"></i>案例</a>
            </li>

        </ul>

        <ul class="layui-nav fly-nav-user">
            {% if user.username %}
                <li class="layui-nav-item">
                    <a class="fly-nav-avatar" href="/userindex">
                        <cite class="layui-hide-xs">{{ user.username }}</cite>
                        {% if user.is_vip != 0 %}
                            <i class="iconfont icon-renzheng layui-hide-xs" title="认证信息：南神认证"></i>
                            <i class="layui-badge fly-badge-vip layui-hide-xs">VIP{{ user.is_vip }}</i>
                        {% endif %}
                        <img src="{{ user.images_url }}">
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="/user/set"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
                        <dd><a href="/user/index"><i class="iconfont icon-tongzhi" style="top: 4px;"></i>我的消息</a>
                        </dd>
                        <dd><a href="/user/home?u={{ user.id }}"><i class="layui-icon"
                                                                    style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a>
                        </dd>
                        <hr style="margin: 5px 0;">
                        <dd><a href="/logout" style="text-align: center;">退出</a></dd>
                    </dl>
                </li>


            {% endif %}
        </ul>
    </div>
</div>

<div class="layui-container fly-marginTop fly-user-main">
    <ul class="layui-nav layui-nav-tree layui-inline" lay-filter="user">
        <li class="layui-nav-item">
            <a href="/user/home?u={{ user.id }}">
                <i class="layui-icon">&#xe609;</i>
                我的主页
            </a>
        </li>
        <li class="layui-nav-item layui-this">
            <a href="/user/index">
                <i class="layui-icon">&#xe612;</i>
                用户中心
            </a>
        </li>
        <li class="layui-nav-item">
            <a href="/user/set">
                <i class="layui-icon">&#xe620;</i>
                基本设置
            </a>
        </li>
        <li class="layui-nav-item icon-tiezi">
            <a href="/user/user_message">
                <i class="layui-icon">&#xe621;</i>
                我的贴子
            </a>
        </li>
        <li class="layui-nav-item">
            <a href="/user/collects">
                <i class="layui-icon">&#xe600;</i>
                我的收藏
            </a>
        <li class="layui-nav-item">
            <a href="/user/follow">
                <i class="layui-icon">&#xe654;</i>
                我的关注
            </a>
        </li>
        <li class="layui-nav-item">
            <a href="/user/fly_kiss">
                <i class="layui-icon">&#xe657;</i>
                飞吻商城
            </a>
        </li>

        </li>
    </ul>

    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>

    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>


    <div class="fly-panel fly-panel-user" pad20>
        {% if user.email_active != "0" %}
            <div class="fly-msg" style="margin-top: 15px;">
                您的邮箱尚未验证，这比较影响您的帐号安全，<a href="activate">立即去激活？</a>
            </div>
        {% else %}
            <div class="fly-msg" style="margin-bottom: 20px;"> Hi，{{ user.username }}，你已是我们的正式社员。</div>
            <div class="fly-panel fly-panel-border">
                <div class="fly-panel-title"> 我的会员信息</div>
                <div class="fly-panel-main layui-text" style="padding: 18px 15px; height: 50px; line-height: 26px;">
                    <p> 您的财富经验值：<span style="padding-right: 20px; color: #FF5722;">￥{{ user.award }}</span>
                        您当前为：
                        {% if user.is_vip != 0 %}
                            <span style="padding-right: 20px; color: #FF5722;">  VIP{{ user.is_vip }}</span>
                        {% else %}
                            非 VIP
                        {% endif %}</p>
                    <p>您拥有社区飞吻：<span style="color: #FF7200; padding-right: 5px;">{{ user.award }}飞吻</span> <a
                            href="/user/pay" target="_blank" class="layui-btn layui-btn-warm layui-btn-xs">充值</a></p>
                </div>
            </div>
            <br><br>




        {% endif %}
    </div>
</div>

<div class="fly-footer">
    <p><a href="#">小宅论坛</a> 2019 &copy; <a href="#">小宅娱乐出品</a>皖ICP备19010957号-1</p>
</div>

<script src="../../static/res/layui/layui.js"></script>
<script>
    {% if user.email_active != "0" %}
        alert("为了你更好的体验请激活邮箱");
    {%endif%}
    layui.cache.page = 'user';
    layui.cache.user = {
        username: '游客'
        , uid: -1
        , avatar: '../../res/images/avatar/00.jpg'
        , experience: 83
        , sex: '男'
    };
    layui.config({

        base: '../../static/res/mods/'
    }).extend({
        fly: 'index'
    }).use('fly');
</script>

</body>
</html>